Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value for BO4E-Versions without _version #23

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

lord-haffi
Copy link
Collaborator

No description provided.

try:
return namespace["Angebot"].schema_parsed["properties"]["_version"]["default"]
except KeyError:
return "unknown"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doofe Frage, aber wir sind ja aktuell deutsch unterwegs im BO4E Standard. Macht es dann Sinn den Default-Wert auch deutsch zu setzen?

Copy link
Collaborator Author

@lord-haffi lord-haffi Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also bisher waren z.B. alle doc strings, die technischer Natur waren, in Englisch. Und ich persönlich halte gerne alles in Englisch, was geht.
Hier geht es nur um einen Version-string, siehe hier: https://github.com/Hochfrequenz/intermediate-bo4e-migration-models/blob/22acb2fef03cf808b75a5e4ea2ea0673418b3f75/src/ibims/bo4e/__version__.py

@lord-haffi lord-haffi merged commit b06688e into main Dec 4, 2023
13 checks passed
@lord-haffi lord-haffi deleted the support_legacy branch December 4, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants